import 'package:flutter/material.dart';
import 'package:untitled/pages/home/tab_mine/function_button_data.dart';
import 'package:untitled/pages/home/tab_mine/function_button_widget.dart';

class FunctionButton extends StatelessWidget {
  const FunctionButton({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Wrap(
        spacing: 1.0,//水平方向间距
        runSpacing: 1.0,//垂直方向间距
        children: list.map((item) => FunctionButtonWidget(
          item
          // height: 20.0,
          // //宽度为屏幕的0.33倍
          // width: MediaQuery.of(context).size.width*0.33,
          // decoration: BoxDecoration(color: Colors.red),
        )).toList()
      ),
    );
  }
}
